package com.galengao.springboot.eventlistener.event;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * 短信监听事件
 *
 * @author galenGao
 * @version Id: Message.java, v 0.1 2022/7/25 22:29  GalenGao Exp $$
 */
@Setter
@Getter
public class MessageEvent extends ApplicationEvent {

    private String message;

    private String username;

    public MessageEvent(Object source) {
        super(source);
    }

    public MessageEvent(Object source, String message,String username) {
        super(source);
        this.message = message;
        this.username = username;
    }
}
